package adminDao;

import java.util.ArrayList;
import dataBase.DataBase;
import animal.AnimalItem;

public class AdminDao {
	public ArrayList<AnimalItem>queryAllData(){
		return DataBase.data;
	}
	public void addAnimalItem(AnimalItem animal){
		DataBase.data.add(animal);
	}
	public void delAnimalItem(String delNumber){
		for(int i=0;i<DataBase.data.size();i++){
			AnimalItem thisAnimal=DataBase.data.get(i);
			if(thisAnimal.getNumber().equalsIgnoreCase(delNumber)){
				DataBase.data.remove(i);
			}
		}
	}
}
